<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
    <% form_for(@general_news_letter, :url => general_news_letter_path) do |f| %>
      <%= f.error_messages %>

      <table>
        <tbody>
          <tr>
            <td> <%= label_tag :description, t('activerecord.attributes.general_news_letter.description') %> </td>
            <td> <%= f.text_field :description %> </td>
          </tr>
          <tr>
            <td> <%= label_tag :country, t('activerecord.attributes.general_news_letter.country') %> </td>
            <td>
            <% for country in @countries %>
                <%= check_box_tag("countries[]", country.id, @general_news_letter.countries.include?(country)) %>
                <%=h country.name %>
            <% end %>
            </td>
          </tr>
          <tr>
            <td> <%= label_tag :subject_mail_english, t('activerecord.attributes.general_news_letter.subject_mail_english') %> </td>
            <td> <%= f.text_field :subject_mail_english %> </td>
          </tr>
          <tr>
            <td> <%= label_tag :subject_mail_spanish, t('activerecord.attributes.general_news_letter.subject_mail_spanish') %> </td>
            <td> <%= f.text_field :subject_mail_spanish %> </td>
          </tr>
          <tr>
            <td> <%= label_tag :optional_text_spanish, t('activerecord.attributes.general_news_letter.optional_text_spanish') %> </td>
            <td> <%= f.text_area :optional_text_spanish, :cols => 50, :rows => 4 %> </td>
          </tr>
          <tr>
            <td> <%= label_tag :optional_text_english, t('activerecord.attributes.general_news_letter.optional_text_english') %> </td>
            <td> <%= f.text_area :optional_text_english, :cols => 50, :rows => 4 %> </td>
          </tr>
          <tr>
            <td> <%= label_tag :date_to_send, t('activerecord.attributes.general_news_letter.date_to_send') %> </td>
            <td> <%= f.date_select :date_to_send %> </td>
          </tr>
        </tbody>
      </table>

      <div class="line-buttons">
        <%= f.submit t('btn_update') %>
      </div>
      <div class="line-links">
        <%= link_to t('btn_show'), general_news_letter_path(@general_news_letter) %> |
        <%= link_to t('btn_back'), general_news_letters_redirect_back_path(general_news_letters_path) %>
      </div>
    <% end %>
  </div>
  <div class="portlet-footer">
  </div>
</div>
